package com.lh.music.entity;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

import java.io.Serializable;

/**
 * Created by a on 2016/12/12.
 */
@DatabaseTable(tableName = "favorateSong")
public class Song implements Serializable{
    //歌曲的主键
    @DatabaseField(generatedId=true)
    private int id;
    @DatabaseField
    private long artist_id;
    @DatabaseField
    private long album_id;
    //歌曲名,不带扩展名
    @DatabaseField
    private String title;
    @DatabaseField
    private String album;
    @DatabaseField
    private String artist;
    //文件路径
    @DatabaseField
    private String data;
    //歌曲名
    @DatabaseField
    private String display_name;
    //歌曲大小
    private  long size;
    //歌曲时长
    @DatabaseField
    private long duration;
    //专辑对应的图片
    @DatabaseField
    private String album_img;
    @DatabaseField
    private boolean isVisiable=false;
    @DatabaseField
    private boolean isPlay=false;
    @DatabaseField
    private boolean isFavorate=false;
    @DatabaseField
    private boolean nowPlay=false;
    public Song() {
    }

    public Song(String title, String album,
                    String artist, String data,
                    String display_name, long size, long duration) {
        this.title = title;
        this.album = album;
        this.artist = artist;
        this.data = data;
        this.display_name = display_name;
        this.size = size;
        this.duration = duration;
    }

    public boolean isNowPlay() {
        return nowPlay;
    }

    public void setNowPlay(boolean nowPlay) {
        this.nowPlay = nowPlay;
    }

    public boolean isFavorate() {
        return isFavorate;
    }

    public void setFavorate(boolean favorate) {
        isFavorate = favorate;
    }

    public boolean isPlay() {
        return isPlay;
    }

    public void setPlay(boolean play) {
        isPlay = play;
    }

    public String getAlbum_img() {
        return album_img;
    }

    public void setAlbum_img(String album_img) {
        this.album_img = album_img;
    }

    public long getArtist_id() {
        return artist_id;
    }

    public void setArtist_id(long artist_id) {
        this.artist_id = artist_id;
    }

    public long getAlbum_id() {
        return album_id;
    }

    public void setAlbum_id(long album_id) {
        this.album_id = album_id;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAlbum() {
        return album;
    }

    public void setAlbum(String album) {
        this.album = album;
    }

    public String getArtist() {
        return artist;
    }

    public void setArtist(String artist) {
        this.artist = artist;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public String getDisplay_name() {
        return display_name;
    }

    public void setDisplay_name(String display_name) {
        this.display_name = display_name;
    }

    public long getSize() {
        return size;
    }

    public void setSize(long size) {
        this.size = size;
    }

    public long getDuration() {
        return duration;
    }

    public void setDuration(long duration) {
        this.duration = duration;
    }

    public boolean isVisiable() {
        return isVisiable;
    }

    public void setVisiable(boolean visiable) {
        isVisiable = visiable;
    }
}
